<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>报名管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/jobmesmanage/jobMesSearch/">报名列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="jobMesSearch" action="${ctx}/jobmesmanage/jobMesSearch/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>学号：</label>
				<form:input path="stuid" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li><label>学生姓名：</label>
				<form:input path="username" htmlEscape="false" maxlength="100" class="input-medium"/>
			</li>
			<li><label>学校名称：</label>
				<form:select path="schoolid" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${jobMesSearches}" itemLabel="schoolname" itemValue="schoolid" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>移动电话：</label>
				<form:input path="moblie" htmlEscape="false" maxlength="200" class="input-medium"/>
			</li>
			<li><label>需求方名称：</label>
				<form:select path="joblinkid" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${jobMesSearches}" itemLabel="jobname" itemValue="joblinkid" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>工资范围：</label>
				<form:input path="jobpay" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li><label>就业地点：</label>
				<form:input path="jobaddr" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li><label>报名状态：</label>
				<form:select path="enrollStatus" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('job_auditing')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>报名时间</label>
				<input name="beginCreateDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					   value="<fmt:formatDate value="${jobMesSearch.beginCreateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					   onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/> -
				<input name="endCreateDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					   value="<fmt:formatDate value="${jobMesSearch.endCreateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					   onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>学号</th>
				<th>学生姓名</th>
				<th>学校名称</th>
				<th>移动电话</th>
				<th>需求方名称</th>
				<th>岗位内容</th>
				<th>就业要求</th>
				<th>工资范围</th>
				<th>提供服利说明</th>
				<th>就业地点</th>
				<th>报名状态</th>
				<th>报名时间</th>
				<shiro:hasPermission name="jobmesmanage:jobLink:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="jobMesSearch">
			<tr>
				<td>
						${jobMesSearch.stuid}
				</td>
				<td>
						${jobMesSearch.username}
				</td>
				<td>
						${jobMesSearch.schoolname}
				</td>
				<td>
						${jobMesSearch.moblie}
				</td>
				<td>
					${jobMesSearch.jobname}
				</td>
				<td>
					${jobMesSearch.jobcontent}
				</td>
				<td>
					${jobMesSearch.jobreq}
				</td>
				<td>
					${jobMesSearch.jobpay}
				</td>
				<td>
					${jobMesSearch.jobstatement}
				</td>
				<td>
					${jobMesSearch.jobaddr}
				</td>
				<td>
						${fns:getDictLabel(jobMesSearch.enrollStatus, 'job_auditing', jobMesSearch.id)}
				</td>
				<td>
					<fmt:formatDate value="${jobMesSearch.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<shiro:hasPermission name="jobmesmanage:jobLink:edit"><td>
					<a href="${ctx}/jobmesmanage/jobLink/form?id=${jobMesSearch.id}">修改</a>
					<a href="${ctx}/jobmesmanage/jobMesSearch/status?id=${jobMesSearch.id}" onclick="return confirmx('确认要审核？', this.href)">审核</a>
					<a href="${ctx}/jobmesmanage/jobMesSearch/delete?id=${jobMesSearch.id}" onclick="return confirmx('确认要删除该就业报名吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>